import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'
const modules = import.meta.glob("../views/**/**.vue");
const routes: Array<RouteRecordRaw> = [
   {
      path: "/",
      name: "Home",
      redirect: "/index",
      component: () => import("../views/home/HomeView.vue"),
      children:[]
   },
   {
      path: "/login",
      name: "Login",
      component: () => import("../views/login/loginView.vue")
   },
   {
      path: "/:pathMatch(.*)*",
      name: "404",
      component: () => import("../views/404.vue")
   }
]
const router = createRouter({
   history: createWebHistory(),
   routes
})
export default router;